#include "nrf24l01.h"

int NRF24L01_example(void) {
	unsigned char buffer[32];
	unsigned char pipe;
	
	/* open device */
	NRF_open();

	while(1) {
#if (!RF_INT_MODE)
		/* read one package */
		NRF_read(buffer, &pipe);
#endif // if (!RF_INT_MODE)
		
		/* write one package */
		NRF_write(buffer, TRUE);
	}
}

